<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>登录</title>
</head>
<body>
<div>
    <div>
        <p th:if="${param.logout}">已注销</p>
        <p th:if="${param.error}">有错误，请重试</p>
        <h2>使用账号密码登录</h2>
        <form role="form" name="form" th:action="@{/login}" action="/login" method="post">
            <div>
                <label for="username">账号</label>
                <input type="text" name="username" value="" placeholder="账号"/>
            </div>
            <div>
                <label for="password">密码</label>
                <input type="password" name="password" placeholder="密码"/>
            </div>
            <input type="submit" id="login" value="Login"/>
        </form>
    </div>
</div>
</body>
</html>